import { createRouter, createWebHistory } from 'vue-router'
import Home from '../components/Home.vue'
import OrderManagement from '../components/index2.vue'
import Users from '../components/Users.vue'
import shopping from '../components/shopping.vue'
import DataContent from '../components/DataContent.vue'
import setting from '../components/setting.vue'

const routes = [
    { path: '/', component: Home },
    { path: '/orders', component: OrderManagement },
    { path: '/users', component: Users },
    { path: '/shopping', component: shopping },
    { path: '/data', component: DataContent },
    { path: '/setting', component: setting }
  ]
  
  const router = createRouter({
    history: createWebHistory(),
    routes
  })
  
  export default router